package com.xxgc.eow.service;

import com.xxgc.eow.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxgc.eow.entity.Articletitle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 发表文章 服务类
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-21
 */
public interface IArticleService extends IService<Article> {
    List<Article> selectAll();

    List<Article> selectPage(int PageNum,int PageSize);

    List<Article> selectTitleName(int articleId);

    int insertArticle(Article article);

    Integer selectTitleId(String titleName);

    List<Article> selectKikeTitle(Article article,
                                  int PageSize,
                                  int PageNum);

    int delArticle(int articleId);

    Integer selectArticleId(Article article);

    int insertArticleTitle(Articletitle articletitle);

    // 动态修改文章内容
    int updateArticleAll(Article article);

    //删除文章话题表
    int delArticleTitle(int articleId);

    List<Article> selectByUserId(int userId);
}
